package me.zhanshi123.timedworld;

import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

public final class Main extends JavaPlugin {
    private static Main instance;
    private static ConfigManager configManager;

    public static Main getInstance() {
        return instance;
    }

    public static ConfigManager getConfigManager() {
        return configManager;
    }

    @Override
    public void onEnable() {
        instance = this;
        configManager = new ConfigManager();
        Bukkit.getPluginManager().registerEvents(new Listeners(), instance);
    }

    @Override
    public void onDisable() {
        // Plugin shutdown logic
    }
}
